package day05.demo01;

/*
 * 省略的静态初始化数组
 * 省略格式：数据类型[]数组名称={元素1，元素2...};*/
public class Demo03Array {
    public static void main(String[] args) {
        int[] array1 = {3, 4, 5, 6, 7};
        int[] array2;
        array2 = new int[]{5, 6, 7, 8, 9};
        int[]array3;
        array3=new int[6];
        for (int i = 0; i < 5; i++) {
            System.out.print(array1[i]);
        }
        System.out.println();
        for (int i = 0; i < 5; i++) {
            System.out.print(array2[i]);
        }

    }
}
